package com.itheima.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * 包名:com.itheima.aspect
 * 作者:Leevi
 * 日期2020-02-21  11:08
 */
@Component
@Aspect
public class TransferAspect {
    @Pointcut("execution(* com.itheima.service.impl.AccountServiceImpl.transfer(..))")
    public void pt1(){

    }
    @Before("pt1()")
    public void security(){
        System.out.println("进行权限校验...");
    }
}
